<template>
  <view id="mybalance">
    <view class="mybalance">
      <view class="mybalance-all">
        <view class="ba-all">
          总余额(元)
        </view>
        <view class="ba-all1">
          1890.00
        </view>
        <view class="ba-all2">
          <view class="ba-all2-1" v-for="(item, index) in ball" :key="index">
            <view class="ba-all2-text">
              {{ item.text }}
              <view class="ba-all-img">
                <image :src="item.img" alt=""></image>
              </view>
            </view>
            <view class="ba-all2-text1">{{ item.text1 }}</view>
          </view>
        </view>


      </view>
    </view>
    <!-- 内容 -->
    <view class="banlan">
      <view class="banlan1" v-for="(item, index) in banla" :key="index"  @click="tixian(item.url)">
        <view class="banlan1-1">
          <view class="banlan1-11">
            <image :src="item.img" alt=""></image>
          </view>
          <view class="banlan1-12">{{ item.text }}</view>
        </view>
        <view class="banlan1-2">{{ item.text1 }}</view>
      </view>
    </view>
  </view>
</template>

<script>
import { url } from '@climblee/uv-ui/libs/function/test';

export default {
  data() {
    return {
      ball: [{
        text: '可提现余额(元)', img: '/static/余额问号.png', text1: '980.50'
      },
      {
        text: '充值余额(元)', img: '/static/余额问号.png', text1: '100.00'
      },
      {
        text: '待入账余额(元)', img: '/static/余额问号.png', text1: '680.50'
      }],
      banla: [{
        img: '/static/余额1.png', text: '充值', text1: '>'
      },
      {
        img: '/static/余额2.png', text: '提现', text1: '>',url:'/pages/tixian/tixian'
      },
      {
        img: '/static/余额3.png', text: '余额明细', text1: '>'
      },
      {
        img: '/static/余额4.png', text: '提现记录', text1: '>'
      },]
    }
  },
  methods: {
    cimg() {
      uni.switchTab({
        url: '/pages/mine/mine.vue'
      })
    },
    tixian(url){
      uni.navigateTo({
        url
      })
      console.log(234);
    }
  }
}
</script>

<style lang="scss">
page{
  background-color: #F5F5F5;
}
#mybalance {
  width: 100%;

  .mybalance {
    width: 100%;
    height: 400rpx;
    background-color: #fc4424;

    .mybalance-all {
      width: 90%;
      margin: auto;
      // 总余额
      .ba-all {
        padding-top: 80rpx;
        font-size: 35rpx;
        color: #fff;
      }

      .ba-all1 {
        font-size: 55rpx;
        margin-top: 10rpx;
        color: #fff;
      }
      .ba-all2{
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 50rpx;
        .ba-all2-1{
          width: 33%;
          .ba-all2-text{
            font-size: 13px;
            color: #fff;
            display: flex;
          }
          .ba-all-img{
            width: 20%;
            image{
              width: 100%;
              height: 32rpx;
            }
          }
          .ba-all2-text1{
            font-size: 17px;
            color: #fff;
            margin-top: 18rpx;
          }
        }
      }
      
    }
  }
  .banlan{
        width: 90%;
        margin: auto;
        background-color: #fff;
        border-radius: 10px;
          margin-top: 30rpx;
        
        .banlan1{
          width: 100%;
          height: 120rpx;
          line-height: 100rpx;
          padding: 0rpx 20rpx;
          box-sizing: border-box;
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #ccc;
          .banlan1-1{
            width: 40%;
            display: flex;
            padding: 10rpx 0rpx;
            .banlan1-11{
              width: 20%;
              image{
                width: 100%;
                height: 40rpx;
                margin-top: 30rpx;
              }
            }
            .banlan1-12{
              margin-left: 14rpx;
            }
          }
        }
      }
}
</style>